package com.seckill.controller;

import com.seckill.config.ProductApi;
import com.seckill.domain.ProductSku;
import com.seckill.mapper.ProductMapper;
import com.seckill.mapper.ProductSkuMapper;
import com.seckill.mapper.SeckillActivityMapper;
import com.seckill.utils.R;
import com.seckill.vo.ProductSkuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * description:
 *
 * @Author youhongwei
 * @Create 2025/7/24 22:30
 * @Version 1.0
 */
@RestController
public class ProductSkuController implements ProductApi {

    @Autowired
    private ProductSkuMapper productSkuMapper;

    @Autowired
    private ProductMapper productMapper;

    @Autowired
    private SeckillActivityMapper seckillActivityMapper;

    @Override
    public R product(Long productId) {

        List<ProductSku> productSkus = productSkuMapper.selectByProductId(productId);


        return R.OK(productSkus);
    }
}
